<?php
/**
 * 用户绑定角色.
 * User: Administrator
 * Date: 2018\9\10 0010
 * Time: 16:24
 */

namespace app\Lib\InterfaceIn\User;


use app\Lib\InterfaceIn\Role\RoleHandle;

interface UserBindingRoleHandle
{
    /**
     * 初始化
     * UserBindingRoleBaseHandle constructor.
     * @param UserHandle $userObj
     */
    public function __construct(UserHandle $userObj);

    /**
     * 设置操作用户类
     * @param UserHandle $opUserObj
     * @return $this
     */
    public function setOpUserObj(UserHandle $opUserObj);

    /**
     * 设置要绑定的角色类
     * @param RoleHandle $roleObj
     * @return $this
     */
    public function setRoleObj(RoleHandle $roleObj);


    public function run();
}